package com.zjitc;

import com.zjitc.scan.Cs;
import com.zjitc.scan.obj.As;
import com.zjitc.scan.obj.Bs;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/7 15:45
 * @description:
 */
public class App4 {

  public static void main(String[] args) {
    ApplicationContext context = new AnnotationConfigApplicationContext(Configration.class);
    As as=context.getBean(As.class);
    Bs bs = context.getBean(Bs.class);
    Cs cs=context.getBean(Cs.class);
    System.out.println(as);
    System.out.println(bs);
    System.out.println(cs);
    System.out.println(as.getBs());
  }

}
